from langchain_ollama import ChatOllama

llm = ChatOllama(
    model="deepseek-r1:7b",
    temperature=0,
    # other params...
)

# messages = [
#     (
#         "system",
#         "You are a helpful assistant that translates English to French. Translate the user sentence.",
#     ),
#     ("human", "I love programming."),
# ]
ai_msg = llm.invoke("智能体和AiAgent 区别？")
print(ai_msg.content)
#
# def main():
#     print("Hello from pythonProject")
#
# if __name__ == '__main__':
#     main()